/*
 *  Settings.java is a class that works with Setup.java to easily save contact information
 *  Copyright (C) 2010  Andrew Fasano
 *
 *   This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */
package org.tds.master;

public class Settings {
	String[] contact1 = new String[3]; //Name, number, email
	String[] contact2 = new String[3];
	
	boolean hasSetup = false;
	boolean inDock = false;
	int oldRingType = -1;
	
	//Setters
		public void setContact(int id, String name, String number, String email) {
			String[] thisContact = {name, number, email};
			if (id == 1) {
				this.contact1 = thisContact;
				
			}else{
				this.contact2 = thisContact;;
			}
			this.hasSetup = contact1[0] != null && contact1[1] != null && contact1[2] != null && contact2[0] != null && contact2[1] != null && contact2[2] != null;
		}
		
		public void setDock(boolean in) {
			this.inDock = in;
		}
}